#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    QString a = "今天你的安排是：";
    if(ui->study->isChecked() == true)
        a += ui->study->text() + " ";
    if(ui->game->isChecked() == true)
        a += ui->game->text() + " ";
    if(ui->work->isChecked() == true)
        a += ui->work->text() + " ";
    ui->label->setText(a);
}
